home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
home
/
hb20d1
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1986-05-20
|
3KB
|
110 lines
echo off
rem INSTALL.BAT May 18, 1986, (must start in drive A:)
rem all parms optional, minimum = a:install
rem [yes] parm answers questions for you
rem [h or f] specifies h=hard/hi density disk, f=360k floppy disk
rem [swap spec] = [drive let:] [s for swap or -s for no swap]
rem e.g. a:install d: yes h -s install c: no f install c: yes
rem install d: no h e:s install c: yes h s install d:
if %1/ == help/ echo Syntax: install [drive let:] [yes] [h or f] [swap spec]
if %1/ == help/ echo (use lower case, []=optional)
if %1/ == help/ echo Examples: install d: yes h e:s
if %1/ == help/ echo (i.e. yes=no questions, h=hard f=floppy, e:s=swap on drive e:)
if %1/ == help/ a:insquit xxx
cls
echo
HomeBase INSTALL Program
echo -------------------------
if not exist a:disk2.doc goto ins0
echo You must start with DISK 1 in Drive A: ! Try again...
pause
%0 %1 %2 %3 %4 %5
:ins0
if %1/ == / goto ins1
for %%n in (A:,a:,B:,b:,C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1/ == %%n/ goto ins1
for %%n in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Q:,q:,R:,r:) do if %1/ == %%n/ goto ins1
for %%n in (S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:,Y:,y:,Z:,z:) do if %1/ == %%n/ goto ins1
echo
ERROR Use correct drive letter (e.g. A:)
a:insquit xxx
:ins1
if %3/ == h/ goto yes2
if %3/ == f/ goto yes4
if %2/ == yes/ goto yes1
echo INSTALL will change a copy of HomeBase Disk 1 or add programs to
echo your boot disk so that HomeBase can be started easily and automatically.
echo However, the installation is easily reversible -- see Section I of
echo the Installation document.
echo This Install program is safe. The final step of installation
echo will require your Yes/No reply.
pause
cls
echo
The DOS "BATCH" processor is quite slow so there may be a delay of up to
echo 30 seconds while the computer is "thinking". Please wait this long before
echo you suspect any problems.
echo To answer YES press "Y", to answer NO press "N".
a:ask Ok to proceed?
if errorlevel 2 a:insquit
:yes1
cls
echo
Do you want to install HomeBase
a:ask on a HARD Disk (or RAM disk or high density 720k+ floppy)
if not errorlevel 2 goto hardd
a:ask on FLOPPY disks (i.e. not on a hard disk)
if not errorlevel 2 goto flop
a:insquit
:hardd
rem -- HARD DISK --
:yes2
%1
cd \
if %1/ == / copy a:inshard.bat c:insh$r-t.bat
if %1/ == / c:insh$r-t C: %2 %3 %4 %5
if %1/ == c:/ copy a:inshard.bat c:insh$r-t.bat
if %1/ == c:/ c:insh$r-t C: %2 %3 %4 %5
copy a:inshard.bat %1insh$r-t.bat
%1insh$r-t %1 %2 %3 %4 %5
a:insquit
rem -- FLOPPY --
:yes4
:flop
a:
cd \
if %1/ == / a:insflop B: %2
if %1/ == a:/ a:insflop B: %2
if %1/ == A:/ a:insflop B: %2
if %1/ == b:/ a:insflop B: %2
a:insflop %1 %2
a:insquit